/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VentanaAvataresMasculinos.java
 *
 * Created on 11/08/2010, 11:25:57 AM
 */

package ventanas;
import javax.swing.JFrame;
import logicaClient.ComunicacionClient;
/**
 *
 * @author Aiskel
 */
public class VentanaAvataresMasculinos extends javax.swing.JFrame {

    /** Creates new form VentanaAvataresMasculinos */
    public VentanaAvataresMasculinos() {
        initComponents();
    }

    public void setVentanaPadre4(JFrame VentanaPadre4) {
        this.VentanaPadre4 = VentanaPadre4;
    }



    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        GrupoAvataresM = new javax.swing.ButtonGroup();
        jRBAvatarM3 = new javax.swing.JRadioButton();
        jRBAvatarM2 = new javax.swing.JRadioButton();
        jLabel6 = new javax.swing.JLabel();
        jRBAvatarM1 = new javax.swing.JRadioButton();
        jLAvatarTituloM = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jRBAvatarM5 = new javax.swing.JRadioButton();
        jRBAvatarM6 = new javax.swing.JRadioButton();
        jBAceptar = new javax.swing.JButton();
        jBAtras = new javax.swing.JButton();
        jRBAvatarM4 = new javax.swing.JRadioButton();
        jLAvatarM1 = new javax.swing.JLabel();
        jLAvatarM2 = new javax.swing.JLabel();
        jLAvatarM3 = new javax.swing.JLabel();
        jLAvatarM4 = new javax.swing.JLabel();
        jLAvatarM5 = new javax.swing.JLabel();
        jLAvatarM6 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Avatares Femeninos");
        setName("VentanaAvataresMasculinos"); // NOI18N

        GrupoAvataresM.add(jRBAvatarM3);
        jRBAvatarM3.setText("jRadioButton1");
        jRBAvatarM3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarM3ActionPerformed(evt);
            }
        });

        GrupoAvataresM.add(jRBAvatarM2);
        jRBAvatarM2.setText("jRadioButton1");
        jRBAvatarM2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarM2ActionPerformed(evt);
            }
        });

        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/avatar10384_2.gif"))); // NOI18N

        GrupoAvataresM.add(jRBAvatarM1);
        jRBAvatarM1.setText("jRadioButton1");
        jRBAvatarM1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarM1ActionPerformed(evt);
            }
        });

        jLAvatarTituloM.setFont(new java.awt.Font("Kristen ITC", 1, 10));
        jLAvatarTituloM.setForeground(new java.awt.Color(153, 0, 0));
        jLAvatarTituloM.setText("Seleccione el avatar con el cual desea crear su cuenta en iDomino");
        jLAvatarTituloM.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jLAvatarTituloM.setName(""); // NOI18N

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/tux12.png"))); // NOI18N

        GrupoAvataresM.add(jRBAvatarM5);
        jRBAvatarM5.setText("jRadioButton1");
        jRBAvatarM5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarM5ActionPerformed(evt);
            }
        });

        GrupoAvataresM.add(jRBAvatarM6);
        jRBAvatarM6.setText("jRadioButton1");
        jRBAvatarM6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarM6ActionPerformed(evt);
            }
        });

        jBAceptar.setText("Aceptar");
        jBAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBAceptarActionPerformed(evt);
            }
        });

        jBAtras.setText("Atras");
        jBAtras.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBAtrasActionPerformed(evt);
            }
        });

        GrupoAvataresM.add(jRBAvatarM4);
        jRBAvatarM4.setText("jRadioButton1");
        jRBAvatarM4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAvatarM4ActionPerformed(evt);
            }
        });

        jLAvatarM1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/brunocb-slach-tux-nroses-7158.png"))); // NOI18N
        jLAvatarM1.setText("jLabel8");

        jLAvatarM2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/canascat-rap-tux.png"))); // NOI18N
        jLAvatarM2.setText("jLabel8");

        jLAvatarM3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/libermail-tux-pilot-12237.png"))); // NOI18N
        jLAvatarM3.setText("jLabel8");

        jLAvatarM4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/rock_tux.png"))); // NOI18N
        jLAvatarM4.setText("jLabel8");

        jLAvatarM5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/tux-mario.png"))); // NOI18N
        jLAvatarM5.setText("jLabel8");

        jLAvatarM6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/tux_venezolano1 - copia.jpg"))); // NOI18N
        jLAvatarM6.setText("jLabel8");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLAvatarM4, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLAvatarM1, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLAvatarM5, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLAvatarM2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addGap(104, 104, 104)
                                    .addComponent(jLAvatarM6, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addGap(99, 99, 99)
                                    .addComponent(jLAvatarM3, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(10, 10, 10))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addComponent(jBAceptar)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jBAtras, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(44, 44, 44)
                            .addComponent(jRBAvatarM4, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(173, 173, 173)
                            .addComponent(jRBAvatarM5, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(172, 172, 172)
                            .addComponent(jRBAvatarM6, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(50, 50, 50)
                            .addComponent(jRBAvatarM1, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(168, 168, 168)
                            .addComponent(jRBAvatarM2, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 133, Short.MAX_VALUE)
                            .addComponent(jRBAvatarM3, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(46, 46, 46)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addComponent(jLAvatarTituloM, javax.swing.GroupLayout.PREFERRED_SIZE, 418, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(531, 531, 531)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addGap(73, 73, 73))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel4)
                        .addGap(110, 110, 110)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(202, 202, 202)
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel4))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLAvatarTituloM)
                        .addGap(30, 30, 30)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLAvatarM1)
                            .addComponent(jLAvatarM3)
                            .addComponent(jLAvatarM2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jRBAvatarM1)
                            .addComponent(jRBAvatarM3)
                            .addComponent(jRBAvatarM2))
                        .addGap(43, 43, 43)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLAvatarM4)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLAvatarM6)
                                    .addComponent(jLAvatarM5))
                                .addGap(6, 6, 6)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jRBAvatarM4)
                                .addComponent(jRBAvatarM6))
                            .addComponent(jRBAvatarM5))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBAceptar)
                    .addComponent(jBAtras))
                .addContainerGap(27, Short.MAX_VALUE))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-545)/2, (screenSize.height-487)/2, 545, 487);
    }// </editor-fold>//GEN-END:initComponents

    private void jBAtrasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBAtrasActionPerformed
        // TODO add your handling code here:
         this.dispose();
        VentanaPadre4.setVisible(true);
    }//GEN-LAST:event_jBAtrasActionPerformed

    private void jBAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBAceptarActionPerformed
        // TODO add your handling code here:
          this.setVisible(false);
          VentanaPadre4.setVisible(true);
    }//GEN-LAST:event_jBAceptarActionPerformed

    private void jRBAvatarM1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarM1ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(1);
        path = ComunicacionClient.concatenarPathImagen("brunocb-slach-tux-nroses-7158.png");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarM1ActionPerformed

    private void jRBAvatarM2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarM2ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(2);
        path = ComunicacionClient.concatenarPathImagen("canascat-rap-tux.png");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarM2ActionPerformed

    private void jRBAvatarM3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarM3ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(3);
        path = ComunicacionClient.concatenarPathImagen("libermail-tux-pilot-12237.png");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarM3ActionPerformed

    private void jRBAvatarM4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarM4ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(4);
        path = ComunicacionClient.concatenarPathImagen("rock_tux.png");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarM4ActionPerformed

    private void jRBAvatarM5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarM5ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(5);
        path = ComunicacionClient.concatenarPathImagen("tux-mario.png");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarM5ActionPerformed

    private void jRBAvatarM6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAvatarM6ActionPerformed
        // TODO add your handling code here:
        VentanaRegistro.setIDavatar(6);
        path = ComunicacionClient.concatenarPathImagen("tux_venezolano1 - copia.jpg");
        VentanaRegistro.setPATHavatar(path);
    }//GEN-LAST:event_jRBAvatarM6ActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VentanaAvataresMasculinos().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup GrupoAvataresM;
    private javax.swing.JButton jBAceptar;
    private javax.swing.JButton jBAtras;
    private javax.swing.JLabel jLAvatarM1;
    private javax.swing.JLabel jLAvatarM2;
    private javax.swing.JLabel jLAvatarM3;
    private javax.swing.JLabel jLAvatarM4;
    private javax.swing.JLabel jLAvatarM5;
    private javax.swing.JLabel jLAvatarM6;
    private javax.swing.JLabel jLAvatarTituloM;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JRadioButton jRBAvatarM1;
    private javax.swing.JRadioButton jRBAvatarM2;
    private javax.swing.JRadioButton jRBAvatarM3;
    private javax.swing.JRadioButton jRBAvatarM4;
    private javax.swing.JRadioButton jRBAvatarM5;
    private javax.swing.JRadioButton jRBAvatarM6;
    // End of variables declaration//GEN-END:variables

    private JFrame VentanaPadre4;
    
    String path = "";

}
